// 用户相关请求
//导入网络请求模块
import http from "../utils/request";
import type { LoginFormItem } from "../types/login";

//登录或注册网络请求
export const getUserLoginAPI = (loginForm: LoginFormItem) => {
  return http({
    url: "/authorizations",
    method: "post",
    data: loginForm,
  });
};

// 获取用户信息网络请求
export const getUserInfoAPIcc = () => {
  return http({
    url: "/user/profile",
    method: "get",
  });
};
